import { createApp } from "vue";
import App from "./App.vue";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css";
import { router } from "./router/index";
import { createPinia } from "pinia";
// import "ant-design-vue/dist/antd.less";
import * as Icons from "@ant-design/icons-vue";

function bootstrap() {
  const app = createApp(App);
  const pinia = createPinia();
  app.use(Antd);
  app.use(router);
  app.use(pinia);
  app.mount("#app");
  app.use(createPinia);
  for (const i in Icons) {
    app.component(i, Icons[i]);
  }
}
bootstrap();
